﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace C4F.DevKit.Bluetooth.ServiceAndDeviceDiscovery
{
    /// <summary>
    /// Stores the value of the service Id.
    /// </summary>
    [StructLayout(LayoutKind.Explicit)]
    public struct ServiceIdUnion
    {
        /// <summary>
        /// Value for type equals TypeUint16
        /// </summary>
        [FieldOffset(0)]
        public ushort Uuid16Value;
        /// <summary>
        /// Value for type equals TypeUint32
        /// </summary>
        [FieldOffset(0)]
        public uint Uuid32Value;
        /// <summary>
        /// Value for type equals TypeUuid
        /// </summary>
        [FieldOffset(0)]
        public Guid Uuid128Value;
    }
}
